//批量引入图片文件夹
//eager: true 表示引入静态资源
export const deviceUrl = import.meta.glob("./device/*.*", { eager: true });


export function getImg(name: string, list: any):string {
    let targetImg = '';
    Object.values(list).forEach((v: any) => {
        if (v.default.includes(name)) {
            targetImg = v.default
        }
    });
    return targetImg
}
